package square.data;

import java.util.ArrayList;

import pedrosm.data.Data;
import pedrosm.data.ScriptData;

import square.script.ConditionScript;

public class ConditionData extends Data implements Cloneable {
	private Object owner;
	private String name;
	private Integer time;
	private ArrayList<String> types = new ArrayList<String>();
	private ScriptData<ConditionScript> script;

	// Instance
	public ConditionData instance() {
		try {
			return (ConditionData) this.clone();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	// Get & Set
	public Object getOwner() {
		return owner;
	}

	public void setOwner(Object owner) {
		this.owner = owner;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getTime() {
		return time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	public ArrayList<String> getTypes() {
		return types;
	}

	public void setTypes(ArrayList<String> types) {
		this.types = types;
	}

	public ScriptData<ConditionScript> getScript() {
		return script;
	}

	public void setScript(ScriptData<ConditionScript> script) {
		this.script = script;
	}
}
